<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddSerialsAndUptoAndSubvcatIdToVassetisTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('vassetis', function (Blueprint $table) {
            $table->integer('serials')->default(0)->nullable()->unsigned()->comment('总集数');
            $table->integer('upto')->default(0)->nullable()->unsigned()->comment('更新到');
            $table->integer('subvcat_id')->default(0)->nullable()->unsigned()->comment('子归类');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
